package javasy;
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import java.util.*;
import java.io.*;
public class gui2 {
	  public String info="";
      public gui2(String str)throws IOException{
    	  JFileChooser jfc=new JFileChooser(str);
    	  jfc.showSaveDialog(null);
    	  File file=jfc.getSelectedFile();
    	  String str1=fileEditor.getWords();
    	  FileOutputStream fop=new FileOutputStream(file);
    	  DataOutputStream dop=new DataOutputStream(fop);
    	  dop.writeChars(str1);
      }
}
